package web;

import entites.Account;
import org.junit.Test;
import service.AccountServiceImpl;

import java.util.Date;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2023/1/12 10:26
 * @copyright: 博为峰
 */
public class Test01 {
    /*public static void main(String[] args) {
        Account account = new Account();
        account.setId(1);
    }*/

    @Test
    public void testAdd() {
        AccountServiceImpl accountService = new AccountServiceImpl();
        Account account = new Account(1, "lisi", 2000, new Date(), new Date());
        accountService.addAccount(account);
    }

    @Test
    public void testTransfer() {
        AccountServiceImpl accountService = new AccountServiceImpl();
        accountService.transfer("zhangsan", "lisi", 500);
    }
}
